package com.zhang.common;

/**
 * Created with IntelliJ IDEA.
 * User: 张
 * Date: 2024-10-27
 * Time: 20:10
 * Description:
 */
public interface Constant {
    Integer USERNAME_MIN_LENGTH = 2;  //用户名最小长度
    Integer USERNAME_MAX_LENGTH = 20; //用户名最大长度
    Integer PASSWORD_MIN_LENGTH = 5;  //密码最小长度
    Integer PASSWORD_MAX_LENGTH = 20; //密码最大长度
    Integer USER_STATE_NORMAL = 1;  //用户正常状态
    Integer IMAGE_DEFAULT = 1;   //默认图片ID
    Integer AUTHORITY_DEFAULT = 2;  //默认权限ID
    Integer USER_DEFAULT_ID = 1;  //默认用户ID
    Integer BUG_NOT_REPAIR = 0;  // 故障未修复
    Integer BUG_REPAIRING = 1;  // 故障修复中
    Integer BUG_REPAIR_SUCCESS = 2;  // 故障修复成功
    Integer TASK_NOT_POINT = 0;
    Integer DEVICE_INIT = 0;
    Integer DEVICE_RESULT = 1;
    Integer DEVICE_ALIVE = 1;
    Integer DEVICE_NOT_ALIVE = 0;
    String ALARM_EMAIL_TITLE = "分拣机械设备控制管理平台告警信息";
    String TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
    String TIME_FORMAT_ERROR = "时间格式错误";
    String BASIC_PATH = System.getProperty("user.dir") + "\\TempFile\\"; // 文件地址前缀
    Integer ZERO = 0;
    String USER_ID_NOT_EMPTY = "用户id不能为空";
    Integer SUCCESS = 200;
    Integer FAIL = 500;
    String EMPTY_STRING = "";
    Integer USER_STATE_FREEZE = 0;
    String TOKEN_USER_INFO = "user-info";
    String HEADER_USER = "X-USER";
    String TOKEN_USER_INFO_USERNAME = "username";
    String DEVICE_RUNNING = "设备运行中";
    String DEVICE_NOT_RUNNING = "设备未运行";
    // gateway
    String MECHANICAL_EQUIPMENT_VERIFICATION_CODE = "分拣机械设备控制管理平台邮箱验证码";
    String DEVICE_NOT_ONLINE = "设备不在线";
    String SERVER_ID = "serverId";
    String SCRIPT_TEMPLATE_ID = "scriptTemplateId";
    String EXECUTE_FREQUENCY = "executeFrequency";
}
